package com.itheima.mall.web.ums;


import com.itheima.mall.commons.result.Result;
import com.itheima.mall.dubbo.api.ums.MemberLevelService;
import com.itheima.mall.entity.domain.ums.MemberLevel;
import com.itheima.mall.entity.domain.ums.Menu;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 会员等级表 前端控制器
 * </p>
 *
 * @author qinglang
 * @since 2022-07-05
 */
@RestController
@RequestMapping("/memberLevel")
@CrossOrigin(origins = "*")
public class MemberLevelController {

    @DubboReference
    private MemberLevelService memberLevelService;

    @GetMapping("/list")
    public Result list(){
        List<MemberLevel> memberLevels = memberLevelService.listM();
        return Result.success(memberLevels);
    }


}

